package com.onlyphoto.onlymall.mvp.model

import com.onlyphoto.onlymall.api.Urls
import com.onlyphoto.onlymall.base.BaseModel
import com.onlyphoto.onlymall.base.BaseObserver
import com.onlyphoto.onlymall.bean.TabbarListBean
import com.onlyphoto.onlymall.utils.RxTransformer


class MMainImpl : BaseModel() {
    fun requestData(baseObserver: BaseObserver<TabbarListBean>) {
        val url = Urls.MAIN
        apiService().requestMain(url)
                .compose(RxTransformer.switchSchedulers(this))
                .subscribe(baseObserver)
    }
}
